# Copyright 2004 Daniel Henninger <jadestorm@nc.rr.com>
# Licensed for distribution under the GPL version 2, check COPYING for details

import os
import debug
from config import aimProtocol

if (aimProtocol == "toc"):
	debug.log("Starting up in TOC mode.")
	from toc import LegacyConnection, LegacyGroupchat, translateAccount
	from toc import name, version, mangle, id, confid, namespace
	from toc import formRegEntry, getAttributes, isGroupJID
elif (aimProtocol == "oscar"):
	debug.log("Starting up in OSCAR mode.")
	from oscar import LegacyConnection, LegacyGroupchat, translateAccount
	from oscar import name, version, mangle, id, confid, namespace
	from oscar import formRegEntry, getAttributes, isGroupJID
else:
	print("No valid AIM protocol specified, exiting...")
	os._exit(-1)
